package com.china.produce.config.redisson;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @ClassName
 * @Author niujie
 * @Version
 * @Description
 * @CreateTime 2025/2/16
 */
@Data
@ConfigurationProperties(prefix = "spring.redis")
public class RedisClientConfigProperties {

    private String host;

    private int port;

    private String password;

    private int database;

    private int poolSize;

    private int minIdleSize;

    private int idleTimeout;

    private int connectTimeout = 10000;

    private int retryAttempts = 3;

    private int retryInterval = 1000;

    private int pingInterval = 0;

    private boolean keepAlive = true;

}
